package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository //仅仅为了欺骗idea
//员工模块
public interface EmployeeMapper extends BaseMapper<Employee> {


    //根据用户名查询
    Employee findByUsername(String username);

    //员工列表
    List<Employee> findList(String name);

    //新增员工
    void save(Employee employee);

    //回显员工
    Employee findById(Long id);

    //修改员工(子接口重写父类接口方法)
    //int updateById(Employee employee);
}
